package org.example.demos.pattern.strategy_pattern.strategy;

import org.example.demos.pattern.strategy_pattern.LoginTypeEnum;
import org.example.demos.pattern.strategy_pattern.dto.LoginCommonParam;
import org.example.demos.pattern.strategy_pattern.dto.LoginCommonResult;
import org.example.demos.pattern.strategy_pattern.dto.LocalLoginDTO;

/**
 * @author liujiaxiang
 */
public class LocalLoginStrategy implements LoginStrategy{
    public LoginCommonResult<LocalLoginDTO> login(LoginCommonParam param) {
        return new LoginCommonResult<LocalLoginDTO>("本地登陆", LoginTypeEnum.LOCAL.getCode(), null);
    }

    public String getLoginType() {
        return LoginTypeEnum.LOCAL.getName();
    }
}
